<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('【请填写功能名称】列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form  id="form-role-showUser" >
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>用户名：</label>
                                <input type="text" name="userName"/>
                            </li>
                            <li>
                                <label>用户口令：</label>
                                <input type="text" name="userPass"/>
                            </li>
                            <li>
                                <label>用户真实姓名：</label>
                                <input type="text" name="realName"/>
                            </li>
                            <li>
                                <label>工作单位：</label>
                                <input type="text" name="workAddress"/>
                            </li>
                            <li>
                                <label>职务：</label>
                                <input type="text" name="duty"/>
                            </li>

                        </ul>
                    </div>
                </form>
            </div>


            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
         var editFlag = [[${@permission.hasPermi('battle:battle:edit')}]];
        var removeFlag = [[${@permission.hasPermi('battle:battle:remove')}]];
        var prefix = ctx + "battle/battle";

        alert( "/listuser/{roleId}");

        $(function() {
         var roleId=[[${roleId}]]
            var options = {
                url: prefix + "/listuser/"+roleId+"",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "战场用户信息管理",
                columns: [
                {
                    field: 'id',
                    title: '战场用户自增id',
                    visible: false
                },
                {
                    field: 'userName',
                    title: '用户名'
                },
                {
                    field: 'userPass',
                    title: '用户口令'
                },
                {
                    field: 'realName',
                    title: '用户真实姓名'
                },
                {
                    field: 'workAddress',
                    title: '工作单位'
                },
                {
                    field: 'duty',
                    title: '职务'
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>